package com.zeus.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/4/17 17:09
 * 商品列表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Goods implements Serializable {
//对应controller层里addfield方法的id,商品的基本信息
    @Field("id")
    private String goodsId;
    @Field
    private String goodsImg;
    @Field
    private String goodsName;
    @Field
    private float salesPrice;

//    商品中包含的属性信息
    private List<AttributeName> attributeNameList;
}
